﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class con_coursedetail : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    public void SetCourse(String cid, String logo,String cname,String department, String recommand, String resourceCount, String keyword, String introduction)
    {
        Image1.ImageUrl = logo;
        LabCname.Text = "课程名：" + cname;
        LabDepartment.Text = "所属学院：" + department;
        LabRecommand.Text = "评分：" + recommand;
        HLCount.Text = "资源数(" + resourceCount + ")";
        HLCount.NavigateUrl = "~/reco_resource.aspx?cid=" + cid;
        HLCount.Font.Underline = true;
        HLCount.ForeColor = System.Drawing.Color.Blue;
        LabKeyword.Text = keyword;
        LabIntroduction.Text = "简介：" +　introduction;
    }
    protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
    {
        this.Visible = false;
    }
}